cls

Rem Redeploy solution

@echo off
echo.
echo -------------------
echo Retract Solution ...
echo -------------------
@echo on
stsadm -o retractsolution -name VASCSiteAction.wsp -immediate -url "http://localhost"

@echo off
echo.
echo -------------------
echo Wait for Timer Jobs to complete ...
echo -------------------
@echo on
stsadm -o execadmsvcjobs

@echo off
echo.
echo -------------------
echo Delete Solution ...
echo -------------------
@echo on
stsadm -o deletesolution -name VASCSiteAction.wsp

@echo off
echo.
echo -------------------
echo Add Solution ...
echo -------------------
@echo on
stsadm -o addsolution -filename VASCSiteAction.wsp

@echo off
echo.
echo -------------------
echo Deploy Solution - by force ...
echo -------------------
@echo on
stsadm -o deploysolution -name VASCSiteAction.wsp -immediate -force -allowgacdeployment -url "http://localhost"

@echo off
echo.
echo -------------------
echo Wait for Timer Jobs to complete ...
echo -------------------
@echo on
stsadm -o execadmsvcjobs

@echo off
echo.
echo -------------------
echo Reset IIS ...
echo -------------------
@echo on
iisreset /noforce
